<?php

class SiteApi extends ApiBase
{
	private $nohf = ['configmainupdate', 'configseoupdate', 'addmenu', 'menudoadd', 'menudoupdate', 'menudel'];
	private $mysql = null;

	public function __construct()
	{

		$this->mysql = n_api('mysql')->cname('weixin');
		// $this->api = n_api('user');
	}

	public function getSiteConfig()
	{
		return $this->mysql->fetchFirst('select * from site_main_config');
	}

}